ENT.Type = "anim"
ENT.Base = "base_anim"

ENT.PrintName = "Soccerball"
ENT.Author = "Prefanatic"
ENT.Contact = ""
ENT.Purpose = ""
ENT.Instructions = "" 

local SB_Model = "models/props_phx/misc/soccerball.mdl"

function ENT:Initialize()

	self.Entity:SetModel( SB_Model )
	
	self.Entity:PhysicsInit( SOLID_VPHYSICS )
	self.Entity:SetMoveType( MOVETYPE_VPHYSICS )
	self.Entity:SetSolid( SOLID_VPHYSICS )
	
	local phys = self.Entity:GetPhysicsObject()
	
	if phys:IsValid() then
		phys:Wake()
		timer.Simple(1.5,function() phys:Sleep() end) 
		phys:EnableGravity(true);
		phys:EnableDrag(true);
	end
	
	phys:SetMass( 50 )
	
end